<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文章列表页</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<link href="./css/boxy.css" rel="stylesheet" type="text/css" />
<{insert_scripts files="./js/jquery.min.js,admin.js,jquery.boxy.js"}>
</head>
<body>
<form name="Form1" method="post" action="manage.aspx?tablename=news" id="Form1">
  <div class="list_border">
    <div class="tools"> 
      <!--      <div id="caozuo" style="margin:0 0 0 2px;">
        <p>操作</p>
        <input type="button" name="Button2" value="添加信息" onclick="javascript:__doPostBack('Button2','')" id="Button2" class="button_add" />
        <input type="button" name="Bt_del" value="删除信息" onclick="javascript:__doPostBack('Bt_del','')" id="Bt_del" class="button_del" />
      </div>-->
      <div>
        <p> 搜索</p>
        <select name="DD_SearchType" id="DD_SearchType" class="dd" style="width:80px;">
          <option value="title">标题</option>
          <option value="content">内容</option>
          <option value="AdminName">发布者</option>
        </select>
        <input name="TB_key" type="text" id="TB_key" class="textbox" />
        <input type="button" name="Button5" value="搜索" onclick="javascript:__doPostBack('Button5','')" id="Button5" class="button_search" />
      </div>
    </div>
    <div class=list>
      <ul style="background-image: url(../images/t_bg.jpg)">
        <li class="check">
          <input type=checkbox name=all onclick="select_all(this.checked);"  />
        </li>
        <li class="left" style="width:12px" ><b>ID</b></li>
        <li class="title" style="width:100px"><b>状态</b></li>
        <li style="width:80px"><b>操作</b></li>
        <li style="width:80px"><b>查看详细</b></li>
        <li style="width:200px"><b>留言时间</b></li>
        <li style="width:200px"><b>邮箱</b></li>        
        <li style="width:150px"><b>联系电话:</b></li>
        <li style="width:150px"><b>联系人:</b></li>
        <li class="none"></li>
      </ul>
      <{foreach from=$res item=datil key=id}>
      <ul id=l15 class="pane">
        <li class="check">
          <input type=checkbox name="c<{$datil.id}>" />
        </li>
        <li class="left" style="width:12px" ><b><{$datil.id}></b></li>
        <li class="title" style="width:100px"><{if $datil.status==1}>已读<{else}><font color="#FF0000">未读</font><{/if}></li>
        <li style="width:80px"><a href="./index.php?c=admin&a=message&mod=main&act=del&id=<{$datil.id}>">[删除]</a></li>
        <li style="width:80px"><a href="./index.php?c=admin&a=message&mod=main&act=view&id=<{$datil.id}>" title="详细内容" class="viewdatil" >[查看详细]</a></li>
        <li style="width:200px"><{$datil.time|date_format:"%Y-%m-%d"}></li>
        <li style="width:200px"><{$datil.opt_3}></li>
        <li style="width:150px"><{$datil.opt_2}></li>
        <li style="width:150px"><{$datil.opt_1}></li>
        <li class="none"></li>
      </ul>
      <{/foreach}> </div>
    <{if $pager}>
    <div class="sabrosus"> 共计<{$pager.total_count}>条记录，分<{$pager.total_page}>页（每页<{$pager.page_size}>条记录）： 
      <!--在当前页不是第一页的时候，显示前页和上一页--> 
      <{if $pager.current_page != $pager.first_page}> <a href="<{spUrl c=admin a=article mod=$mod page=$pager.first_page}>">&lt;</a> <a href="<{spUrl c=admin a=article mod=$mod page=$pager.prev_page}>">上一页</a> <{/if}> 
      <!--开始循环页码，同时如果循环到当前页则不显示链接--> 
      <{foreach from=$pager.all_pages item=thepage}>
      <{if $thepage != $pager.current_page}> <a href="<{spUrl c=admin a=article mod=$mod page=$thepage}>"><{$thepage}></a> <{else}> <span class="current"><{$thepage}></span> <{/if}>
      <{/foreach}> 
      <!--在当前页不是最后一页的时候，显示下一页和后页--> 
      <{if $pager.current_page != $pager.last_page}> <a href="<{spUrl c=admin a=article mod=$mod page=$pager.next_page}>">下一页</a> <a href="<{spUrl c=admin a=article mod=$mod page=$pager.last_page}>">&gt;</a> <{/if}> </div>
    <{/if}> </div>
</form>
<script type="text/javascript">
$(function() {
	$(".viewdatil").boxy();

});		
</script>
</body>
</html>
